Skip to content

Add per-pool TSIG key creation gated by AZAwareMode#486

Open
abhiramnarayana wants to merge 1 commit into
openstack-k8s-operators:mainfrom
abhiramnarayana:osprh-30752-per-pool-tsig
Open

Add per-pool TSIG key creation gated by AZAwareMode#486
abhiramnarayana wants to merge 1 commit into
openstack-k8s-operators:mainfrom
abhiramnarayana:osprh-30752-per-pool-tsig

Conversation

@abhiramnarayana

Copy link
Copy Markdown
Contributor

Replace the shared TSIG key model with per-pool keys when AZAwareMode=Enabled. Each pool (including default) gets its own TSIG key with scope=POOL and resource_id set to the actual pool UUID from Designate.

Implement the two-pass creation flow: pools are created without tsigkey_id, pool UUIDs are retrieved, TSIG keys are created per pool, then pools.yaml is regenerated with tsigkey_id populated.

Add lifecycle management: cleanup orphaned TSIG keys when pools are removed, clean transition between per-pool and shared modes. The shared TSIG model remains unchanged when AZAwareMode is not enabled.

Add unit tests for pool generation with TSIG key IDs.

@openshift-ci openshift-ci Bot requested review from abays and omersch381 June 25, 2026 06:55
@openshift-ci

openshift-ci Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: abhiramnarayana
Once this PR has been reviewed and has the lgtm label, please assign dprince for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Replace the shared TSIG key model with per-pool keys when
AZAwareMode=Enabled. Each pool (including default) gets its own
TSIG key with scope=POOL and resource_id set to the actual pool
UUID from Designate.

Implement the two-pass creation flow: pools are created without
tsigkey_id, pool UUIDs are retrieved, TSIG keys are created per
pool, then pools.yaml is regenerated with tsigkey_id populated.

Add lifecycle management: cleanup orphaned TSIG keys when pools
are removed, clean transition between per-pool and shared modes.
The shared TSIG model remains unchanged when AZAwareMode is not
enabled.

Add unit tests for pool generation with TSIG key IDs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Abhiram R N <abhiramrn@gmail.com>
@abhiramnarayana abhiramnarayana force-pushed the osprh-30752-per-pool-tsig branch from 7d5f435 to c179353 Compare June 25, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant